﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SSABSZ.SuperEP.Core;

namespace SSABSZ.SuperEP.Service.Test
{
    internal static class TestLayerManager
    {
        static SvcHVCEnterpriseProfile svcHVCEnterpriseProfile;
        public static SvcHVCEnterpriseProfile GetService()
        {
            if(svcHVCEnterpriseProfile==null) {
                svcHVCEnterpriseProfile=new SvcHVCEnterpriseProfile(GetConnection());
            }
            return svcHVCEnterpriseProfile;
        }

        static ConnectionAddress GetConnection()
        {
            var conn = new ConnectionAddress()
            {
                ServerAddress = @"VCRDESIGN04\SQL2012",
                Database = "H12",
                NTLMAuth = false,
                Username = "sa",
                Password = "mssqlsa"
            };
            return conn;
        }

    }
}
